package com.aspire.boc.mms.wmf.constants;

import java.util.HashMap;
import java.util.Map;
import java.util.ResourceBundle;

public class GlobalConstant {
	public static final String LOGON_USER = "logon_user";
	public static final String LOG_ERRTIMES = "logErrTimes";
	public static final String LOGON_USERROLES = "logon_userRoles";
	public static final String LOGON_USERSYSTEMS = "logon_userSystems";
	public static final String SELECTED_ROLE_IDS = "selectedRoleIds";
	public static final String SELECTED_SYSTEM_ID = "selectedSystemId";
	public static final String VALID_CODE = "validcode";
	public static final String CURRENT_PATH = "currentPath";
	public static final String CURRENT_LANG = "currentLang";
	public static final String CURRENT_LANG_PATH = "currentLangPath";
	public static final String SELECTED_LOCALE = "selectedLocale";
	public static final String WMF_USER_ACTIONDOS = "wmf.session.userActiondos";
	public static final String WMF_LOGIN_STATUS = "wmf.session.login";
	public static String VERSION = "";

	public static Map<String, ResourceBundle> LOCALES = new HashMap<String, ResourceBundle>();
	public static String DEFAULT_LOCALE = "";

	public static String SM = "";
	public static final String NO_SM = "no";
	public static final String USERNAME_SM = "username";
	public static final String PASSWORD_SM = "password";
	public static final String JBOB_SM = "jbob";
	public static final int NO_AL = 0;
	public static final int SYSTEM_AL = 1;
	public static final int RESOURCE_AL = 2;
	public static final int ACTION_AL = 3;
	public static final int USER_RECORD_RULE = 1;
	public static final int DEPT_RECORD_RULE = 2;
	public static final int FRAME_OWNERTYPE = 1;
	public static final int LIST_OWNERTYPE = 2;
	public static final int FORM_ADD_OWNERTYPE = 3;
	public static final int FORM_EDIT_OWNERTYPE = 4;
	public static final int FORM_QUERY_OWNERTYPE = 5;
	public static final int REPORT_OWNERTYPE = 6;
	public static final int WORKFLOW_OWNERTYPE = 7;
	public static final int OTHER1_OWNERTYPE = 8;
	public static final int OTHER2_OWNERTYPE = 9;
	public static final int OTHER3_OWNERTYPE = 10;
	public static final int OTHER4_OWNERTYPE = 11;
	public static final int OTHER5_OWNERTYPE = 12;
	
	
	// 菜单集合缓存(List形式)
	public static final String RESOURCE_CACHE = "RESOURCE_CACHE";
	// 菜单集合缓存(List形式)
	public static final String ACTION_CACHE = "ACTION_CACHE";
	// 操作集合缓存(Map形式，key为系统名+resource_id)
	public static final String RESOURCE_MAP_CACHE = "RESOURCE_MAP_CACHE";
	// 操作集合缓存(Map形式，key为系统名+action_id)
	public static final String ACTION_MAP_CACHE = "ACTION_MAP_CACHE";
	// 本地权限集合缓存
	public static final String SECURITY_DATA_CACHE = "SECURITY_DATA_CACHE";
	
	public static final String ADMIN_ROLEIDS = "ADMIN_ROLEIDS";
	public static final String ADMINISTRATOR = "ADMINISTRATOR";
	public static final String ALL_ACTION_OWNERTYPE = "999";
	public static final String ALL_ACTION_RESOURCE = "999";
	
	public static final String INDEX_PAGE = "../index.jsp";
	
	public static final String RES_STRING_OF_SYSTEM_ADMIN = "SystemAdmin";
	
}
